//
// Created by YueChuan on 2023/5/8.
//

#include "uri.h"
#include <iostream>

int main(int argc, char **argv) {
    yuechuan::Uri::ptr uri = yuechuan::Uri::Create("http://admin@www.sylar.top?123=1&1=a&key=你好#hello");
    std::cout << uri->toString() << std::endl;
    auto addr = uri->createAddress();
    std::cout << addr->toString() << std::endl;
    return 0;
}